﻿using Microsoft.AspNetCore.Mvc;
using MvcSample.Validations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace MvcSample.Models
{
    public class SignInVm
        //:IValidatableObject
    {
        //[Remote("CheckNameExistAsync","users",ErrorMessage ="Url格式不符合规范")]
        public string UserName { get; set; }
        //[Length("长度不够")]
        public string Password { get; set; }

        //public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        //{
        //    var obj = validationContext.ObjectInstance;
        //    yield return new ValidationResult(validationContext.MemberName);
        //}
    }
}
